package com.baiyang.server.model.transaction;

import com.baiyang.server.annotation.NotNull;

/**
 * @author XVX - generator
 * @version 1
 */
@NotNull
public class Orders {
	//唯一id
	@NotNull
	private String id;	
	//用户id
	@NotNull
	private String userId;
	private String userName;
	//地址信息id
	@NotNull
	private String addressId;
	private String address;
	//数量
	@NotNull
	private Integer num;	
	//书籍id
	@NotNull
	private String bookId;
	private String bookName;
	private String logisticsState = "0";
	private String logisticsRemark;
	private String picUrl;
	//创建时间
	private String createTime;	
	//付款金额
	@NotNull
	private Double price;	
	//订单状态：0-已支付。1-已发货。2-已收货。3-完成
	@NotNull
	private String state;
	// 评论内容
	private String comment;
	
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	public String getUserId(){
		return userId;
	}
	public void setUserId(String userId){
		this.userId = userId;
	}
	public String getAddressId(){
		return addressId;
	}
	public void setAddressId(String addressId){
		this.addressId = addressId;
	}
	public Integer getNum(){
		return num;
	}
	public void setNum(Integer num){
		this.num = num;
	}
	public String getBookId(){
		return bookId;
	}
	public void setBookId(String bookId){
		this.bookId = bookId;
	}
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime = createTime;
	}
	public Double getPrice(){
		return price;
	}
	public void setPrice(Double price){
		this.price = price;
	}
	public String getState(){
		return state;
	}
	public void setState(String state){
		this.state = state;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getLogisticsState() {
		return logisticsState;
	}

	public void setLogisticsState(String logisticsState) {
		this.logisticsState = logisticsState;
	}

	public String getLogisticsRemark() {
		return logisticsRemark;
	}

	public void setLogisticsRemark(String logisticsRemark) {
		this.logisticsRemark = logisticsRemark;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
}
